package com.jayanslow.lighting.server.dmx;

import java.util.TimerTask;

public class Time extends TimerTask {
	private DmxController dmx;
	
	public Time(DmxController d) {
		dmx = d;
	}
	public void run() {
		for (DmxChannel c : dmx.getChannels()) {
			if (c.isFading()) c.getFade().tick();
		}
	}
}
